@echo off
set /p input="Do you want to start Working environment? (y/n)"
:: TODO 当输入n时，不运行接下来的命令
:: if (input == 'n')

:: exe程序绝对路径
set idea_abs_path="C:\\Program Files\\JetBrains\\IntelliJ IDEA 2021.1.3\\bin\\idea64.exe"
set dingtalk_abs_path="E:\\DingDing\\DingtalkLauncher.exe"
set navicate_abs_path="E:\\Navicat Premium 15\\navicat.exe"

echo starting IDEA...
start "" %idea_abs_path%
timeout /t 1 > nul
echo starting DingTalk...
start "" %dingtalk_abs_path%
timeout /t 1 > nul
echo starting Navicat...
start "" %navicate_abs_path%
timeout /t 1 > nul

echo Done...
timeout /t 3 > nul